<template lang="html">
  <div class="banner" @click='returnHandle'>
    <i class="el-icon-success"></i>
    {{rTitle}}
  </div>
</template>

<script>
export default {
  data(){
   return {
     oldUrl:''
   }
 },
 props:{
   rTitle:{
     type:String,
     default:''
   }
 },
  methods:{
    returnHandle () {
      // window.location.href = this.oldUrl
      // this.$router.back(-1)
      window.history.back()
    }
  }
}
</script>

<style lang="less">
.banner{
  height: 88/100rem;
  line-height: 88/100rem;
  background-color: #171818;
  color: #fff;
  text-align: center;
  letter-spacing: 2/100rem;
  position: relative;
  font-size: 34/100rem;
  i{
    width: 40/100rem;
    height: 40/100rem;
    font-size: 25/100rem;
    color:#fff;
    position: absolute;
    left:20/100rem;
    top:30/100rem;
  }
}
</style>
